<div class="box">
 <div class="box_1">
 <h3><span><?php echo $this->_var['lang']['all_goods_cat']; ?></span></h3>
  <div id="category_tree">
    <?php $_from = $this->_var['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat_0_48378600_1379816565');$this->_foreach['categories'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['categories']['total'] > 0):
    foreach ($_from AS $this->_var['cat_0_48378600_1379816565']):
        $this->_foreach['categories']['iteration']++;
?>
     <dl <?php if ($this->_var['parent_id'] == $this->_var['cat_0_48378600_1379816565']['id'] || ( $this->_var['parent_id'] == 0 && ($this->_foreach['categories']['iteration'] - 1) == 0 )): ?>class="current"<?php endif; ?>>
     <dt onclick="sh_tree(this)"><a href="javascript:;"><?php echo htmlspecialchars($this->_var['cat_0_48378600_1379816565']['name']); ?></a></dt>
     <?php $_from = $this->_var['cat_0_48378600_1379816565']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
     <dd><a href="<?php echo $this->_var['child']['url']; ?>"><?php echo htmlspecialchars($this->_var['child']['name']); ?></a></dd>
       <?php $_from = $this->_var['child']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'childer');if (count($_from)):
    foreach ($_from AS $this->_var['childer']):
?>
       <dd>&nbsp;&nbsp;<a href="<?php echo $this->_var['childer']['url']; ?>"><?php echo htmlspecialchars($this->_var['childer']['name']); ?></a></dd>
       <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
     <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
       </dl>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
      <script type="text/javascript">
	function sh_tree(obj){
		if(obj.parentNode.className ==""){
			obj.parentNode.className = "current";
		}else{
			obj.parentNode.className = "";
		}
	}
    </script>
  </div>
 </div>
</div>
<div class="blank5"></div>
